﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace OpenChart.Entities
{
    public class Axis : ChartElement
    {
        private StringInfo _lable = new StringInfo();
        /// <summary>
        /// 坐标轴Lable
        /// </summary>
        public StringInfo Lable
        {
            get { return _lable; }
            set { _lable = value; }
        }

        /// <summary>
        /// 刻度间隔（饼图和对数形式显示的Y轴无需设置此属性)
        /// </summary>
        public double? Interval
        {
            get;
            set;
        }

        /// <summary>
        /// 日期格式
        /// </summary>
        public string TimeFormat
        {
            get;
            set;
        }
        /// <summary>
        /// 最大值
        /// </summary>
        public double? MaxValue { get; set; }

        /// <summary>
        /// 最小值
        /// </summary>
        public double? MinVAlue { get; set; }

        private Enums.InervalType _intervalType = Enums.InervalType.Number;
        /// <summary>
        /// X轴数据类型
        /// </summary>
        public Enums.InervalType IntervalType
        {
            get { return _intervalType; }
            set { _intervalType = value; }
        }

        private Grid _grid = new Grid();
        /// <summary>
        /// 主要的表格线
        /// </summary>
        public Grid Grid
        {
            get { return _grid; }
            set { _grid = value; }
        }

        /// <summary>
        /// 是否显示主要网格线
        /// </summary>
        public bool ShowGrid { get; set; }
    }
}
